package com.prothink.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName : JsLog  //类名
 * @Description : 日志表  //描述
 * @Author : Zhang //作者
 * @Date: 11/28  21:26
 */
public class JsLog {
    private Integer logId;
    private String tableName;   //对应的表
    private String type;    //类型 1、添加 2、编辑 3、查看 4、删除
    private Integer userId; //用户id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private java.util.Date createDate;  //添加时间
    private String remark;  //备注
    private Integer logType;    //日志类型  1、商品 2、课程 3、微圈 4、权限

    private String trueName;    //操作人

    public JsLog() {
    }

    public JsLog(String tableName, String type, Integer userId, Date createDate, String remark, Integer logType) {
        this.tableName = tableName;
        this.type = type;
        this.userId = userId;
        this.createDate = createDate;
        this.remark = remark;
        this.logType = logType;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getLogType() {
        return logType;
    }

    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }
}
